﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CostCenter_Dept.aspx.cs" Inherits="Hisun.View.DataExchange.CostCenter_Dept" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
     <title></title>
    <style type="text/css">
        .style1
        {
            height: 16px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">作业中心科目对照管理</div></div>
    <div class ="CommonPage_Body">
    <table style="width:100%;">
          <tr>
                <td>
                 
                </td>
            </tr>
                   <tr>
                <td class="style1">
                    <asp:Label ID="Label10" runat="server" Text="查询字段：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_Field" runat="server" 
                        EnableViewState="False" Height="24px" SkinID="DropdownList">
                        <asp:ListItem Value="0">部门编码</asp:ListItem>
                        <asp:ListItem Value="1">部门名称</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="Label9" runat="server" Text="查询内容：" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_QueryValue" runat="server" Height="18px" 
                        SkinID="TextBox"></asp:TextBox>
                    <asp:Button ID="Button_Query" runat="server" Text="查询" onclick="MyClick" 
                        CommandArgument="first" />
                        <asp:Button ID="Button_Add" runat="server" oncommand="Button_Add_Command" 
                        Text="新增" />
                </td>
            </tr>
            
            <tr>
                <td>
                    <asp:Panel ID="Panel_GridList" runat="server" Visible="False"> <asp:LinkButton ID="LinkButton_First" runat="server" CommandArgument="First" 
                                    onclick="MyClick">&lt;&lt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Prev" runat="server" CommandArgument="Prev" 
                                    onclick="MyClick"> &lt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Next" runat="server" CommandArgument="Next" 
                                    onclick="MyClick">&gt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Last" runat="server" CommandArgument="Last" 
                                    onclick="MyClick"> &gt;&gt;</asp:LinkButton>
                                <asp:Label ID="Label_Total" runat="server" Text="共：" SkinID="Label"></asp:Label>
                                <asp:Label ID="Label_CurrenPageAndTo" runat="server" Text="页，当前第 页，转到" 
                            SkinID="Label"></asp:Label>
                                <asp:TextBox ID="TextBox_PageIndex" runat="server" Width="26px" 
                            SkinID="TextBox"></asp:TextBox>
                                <asp:Label ID="Label11" runat="server" Text="页" SkinID="Label"></asp:Label>
                                <asp:RangeValidator ID="RangeValidator_PageIndex" runat="server" 
                                    ControlToValidate="TextBox_PageIndex" ErrorMessage="*" MaximumValue="10000" 
                                    MinimumValue="1" Type="Integer"></asp:RangeValidator>
                                <asp:Button ID="Button_PageGo" runat="server" CommandArgument="GotoPage" 
                                    onclick="MyClick" Text="GO" /><asp:GridView ID="GridView_AccCost" runat="server"  
                        SkinID ="GridView"
                        AutoGenerateColumns="False"                        
>
                        <Columns>
                        <asp:BoundField DataField="部门编码" HeaderText="部门编码" ReadOnly="True" 
                                SortExpression="部门编码" />
                            <asp:BoundField DataField="部门名称" HeaderText="部门名称" ReadOnly="True" 
                                SortExpression="部门名称" />
                            <asp:BoundField DataField="科目编码" HeaderText="科目编码" ReadOnly="True" 
                                SortExpression="科目编码" />
                            <asp:BoundField DataField="科目名称" HeaderText="科目名称" ReadOnly="True" 
                                SortExpression="科目名称" />
                            <asp:BoundField DataField="作业中心编码" HeaderText="作业中心编码" ReadOnly="True" 
                                SortExpression="成本细项编码" />
                            <asp:BoundField DataField="作业中心名称" HeaderText="作业中心名称" ReadOnly="True" 
                                SortExpression="作业中心名称" />
                                 <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" />

                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Button ID="Button_Edit" runat="server" CommandArgument='<%# Eval("ID") %>' 
                                        oncommand="Button_Edit_Command" Text="编辑" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Button ID="Button_Del" runat="server" oncommand="Button_Del_Command" 
                                        Text="删除" CommandArgument='<%# Eval("ID") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
            <td>
                    <asp:Panel ID="Panel_AddEdit" runat="server" Visible="False" >
                        <table style="width:100%;">
                  
                           
                            <tr>
                                <td  >
                                    <asp:Label ID="Label2" runat="server" Text="部门编码" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_DeptCode" runat="server" SkinID="TextBox"></asp:TextBox>
                                    <asp:Button ID="Button_Select1" runat="server" onclick="Button_Select1_Click" 
                                        Text="..." Width="16px" />
                                </td>
                                <td >
                                    <asp:Label ID="Label4" runat="server" Text="部门名称" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_DeptName" runat="server" SkinID="TextBox" Width="128px"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                             <tr>
                                <td  >
                                    <asp:Label ID="Label1" runat="server" Text="科目编码" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_SubjectCode" runat="server" SkinID="TextBox"></asp:TextBox>
                                    <asp:Button ID="Button2" runat="server" onclick="Button_Select2_Click" 
                                        Text="..." Width="16px" />
                                </td>
                                <td >
                                    <asp:Label ID="Label3" runat="server" Text="科目名称" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_SubjectName" runat="server" SkinID="TextBox" 
                                        Width="128px"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td  >
                                    <asp:Label ID="Label7" runat="server" Text="作业中心编码" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_CostCenterCode" runat="server" SkinID="TextBox"></asp:TextBox>
                                    <asp:Button ID="Button1" runat="server" Text="..." Width="16px" 
                                        onclick="Button_Select3_Click" />
                                </td>
                                <td >
                                    <asp:Label ID="Label8" runat="server" Text="作业中心名称" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_CostCenterName" runat="server" SkinID="TextBox"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            
                            <tr>
                                <td  >
                                    <asp:Button ID="Button_PostBack" runat="server" 
                                        oncommand="Button_PostBack_Command" Text="保存" 
                                        />
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button ID="Button_Cancel" runat="server" oncommand="Button_Cancel_Command" 
                                        Text="取消" />
                                </td>
                                <td >
                                    &nbsp;</td>
                                <td >
                                    &nbsp;</td>
                                <td >
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td >
                                  <asp:HiddenField ID="StateFlag" runat="server" Value="0" 
                                         /></td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    <asp:HiddenField ID="CurrentPage" runat="server" Value="0" />
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                    </td></tr>
   </table>
    
    </div></div>
    </form>
</body>
</html>
